package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-05-08
 * Time: 13:57
 */

/*interface IUse{
    //接口中的方法默认是 public abstract
    public abstract void method1();
    public static final double length = 12.1;//默认是 public static final
}*/


public class Testdemo2 {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();

        computer.useDevice(new Mouse());
        System.out.println("==================");
        computer.useDevice(new KeyBoard());

        computer.powerOff();
    }
}
